﻿Public Class Registrar_empleado
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Sub BT_registrar_Click(ByVal sender As Object, ByVal e As EventArgs) Handles BT_registrar.Click
        Dim datacontex As New DCStorexpressDataContext
        Dim mensaje As MsgBoxResult
        mensaje = MsgBox("¿Desea Guardar Registro?", MsgBoxStyle.OkCancel, "REGISTRO")
        If mensaje = MsgBoxResult.Ok Then
            MsgBox("Registro Guardado")

            datacontex.INSERTAR_EMPLEADO(Me.TB_nombres.Text, Me.TB_apellidos.Text, Me.RadioButtonList1.Text, Me.TB_numerodoc.Text, Me.TB_eps.Text, Me.TB_arp.Text, Me.TB_cargo.Text, Me.TB_telefono.Text, Me.TB_direccion.Text)
            TB_nombres.Text = ""
            TB_apellidos.Text = ""
            RadioButtonList1.Text = ""
            TB_numerodoc.Text = ""
            TB_eps.Text = ""
            TB_arp.Text = ""
            TB_cargo.Text = ""
            TB_telefono.Text = ""
            TB_direccion.Text = ""
        End If

    End Sub

    Protected Sub BT_atras_Click(ByVal sender As Object, ByVal e As EventArgs) Handles BT_atras.Click
        Response.Redirect("~/Registrar.aspx")
    End Sub





End Class